<template>
<div>
  <div @click="submit">登录</div>
</div>
</template>

<script>
export default {
name: "login",
  methods:{
    submit(){
      this.$store.commit("updateFn", {
        key: "islogin",
        data: true,
        localStore: true,
      });
      this.$router.push({path:'/index'})
    }
  }
}
</script>

<style scoped>

</style>